'use strict';

const Controller = require('egg').Controller;

class StatisticsController extends Controller {
    async getMemberStatisticsData() {
        const { ctx, service } = this;

        try {
            const result = await service.member.getUserStatisticsDataSrv();
            ctx.successResult(result);
        } catch (error) {
            ctx.errorResult(error.message);
        }
    }
}

module.exports = StatisticsController;
